﻿<html>
<head>
    <title>首页</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" rev="stylesheet" href="skins/default/global.css" type="text/css"
        media="all" />
    <link rel="stylesheet" rev="stylesheet" href="skins/default/layout.css" type="text/css"
        media="all" />
    <link rel="stylesheet" rev="stylesheet" href="skins/default/link.css" type="text/css"
        media="all" />
    <script type="text/javascript" src="JavaScripts/jquery-1.4.4.min.js"></script>
    <script language="JavaScript">
        //*************************************************************************************
        /*@cc_on_d = document; eval('var document=_d')@*/
        var j = -1;
        var temp_str;
        var $ = function (node) { return document.getElementById(node); }
        var $$ = function (node) { return document.getElementById("suggest").getElementsByTagName(node); }

        function keyupdeal(e) {
            var keyc;
            if (window.event) {
                keyc = e.keyCode;
            }
            else if (e.which) {
                keyc = e.which;
            }
            if (keyc != 40 && keyc != 38) {
                temp_str = $("searchstring").value;
                if (temp_str !== "") {
                    location.href = 'pkm2:suggest?query=' + temp_str;
                }
            }
        }
        function set_style(num) {
            for (var i = 0; i < $$("li").length; i++) {
                var li_node = $$("li")[i];
                li_node.className = "";
            }
            if (j >= 0 && j < $$("li").length) {
                var i_node = $$("li")[j];
                $$("li")[j].className = "select";
            }
        }
        function mo(nodevalue) {
            j = nodevalue;
            set_style(j);
        }
        function form_submit() {
            if (j >= 0 && j < $$("li").length) {
                $$("input")[0].value = $$("li")[j].childNodes[0].nodeValue;
            }
            location.href = 'pkm2:search';
        }
        function hide_suggest() {
            var nodes = document.body.childNodes
            for (var i = 0; i < nodes.length; i++) {
                if (nodes[i] != $("searchstring")) {
                    $("suggest").innerHTML = "";
                    $("suggest").style.display = "none";
                }
            }
        }
        function keydowndeal(e) {
            var keyc;
            if (window.event) {
                keyc = e.keyCode;
            }
            else if (e.which) {
                keyc = e.which;
            }
            if (keyc == 40 || keyc == 38) {
                if (keyc == 40) {
                    if (j < $$("li").length) {
                        j++;
                        if (j >= $$("li").length) {
                            j = -1;
                        }
                    }
                    if (j >= $$("li").length) {
                        j = -1;
                    }
                }
                if (keyc == 38) {
                    if (j >= 0) {
                        j--;
                        if (j <= -1) {
                            j = $$("li").length;
                        }
                    }
                    else {
                        j = $$("li").length - 1;
                    }
                }
                set_style(j);
                if (j >= 0 && j < $$("li").length) {
                    $("searchstring").value = $$("li")[j].childNodes[0].nodeValue;
                }
                else {
                    $("searchstring").value = temp_str;
                }
            }
        }
        //*************************************************************************************
        function isValid(form) {
            if (form.searchstring.value == "") {
                alert("检索词不能为空！");
                return false;
                form.searchstring.focus();
            }
            else if ((form.searchstring.value.length < 2) || (form.searchstring.value.length > 12)) {
                alert("检索词长度不能 <2 或 >12 ！");
                return false;
                form.searchstring.focus();
            }
            else {
                return true;
            }
        }
    </script>
</head>
<body onclick="hide_suggest();">
    <div id="container">
        <div class="search">
            <input class="searchbox" name='searchstring' id='searchstring' value='' onkeyup="keyupdeal(event);"
                onkeydown="keydowndeal(event);" onclick="keyupdeal(event);" />
            <button class="searchbutton" onclick="location.href='pkm2:search'">
                搜索</button>
            <div id="suggest" class="suggest">
            </div>
            <div id="SearchRadio">
                <input id="title" style="height: 20px" type="radio" checked value="title" name="searchfield">&nbsp;<label
                    for="title">标题</label>&nbsp;&nbsp;&nbsp;
                <input id="content" style="height: 20px" type="radio" value="content" name="searchfield">&nbsp;<label
                    for="content">正文</label>&nbsp;&nbsp;&nbsp;
                <input id="author" style="height: 20px" type="radio" value="author" name="searchfield">&nbsp;<label
                    for="author">作者</label>&nbsp;&nbsp;&nbsp;
                <input id="others" style="height: 20px" type="radio" value="others" name="searchfield">&nbsp;<label
                    for="others">备注</label>&nbsp;&nbsp;&nbsp;
                <input id="source" style="height: 20px" type="radio" value="source" name="searchfield">&nbsp;<label
                    for="source">来源</label>
                <input id="filetitle" style="height: 20px" type="radio" value="filetitle" name="searchfield">&nbsp;<label
                    for="filetitle">附件</label>
            </div>
        </div>
        <!--$INNERHTML$-->
        <div class="comment">
            <div class='Content-top'>
                <h3 class='ContentTitle'>
                    <strong>您上次退出前曾阅读过以下文章： </strong>
                </h3>
            </div>
        </div>
        <div class="comment">
            <div style='width: 100%; margin-top: 10px; padding: 5px'>
                <div class='Content-top'>
                    <h3 class='ContentTitle'>
                        <strong>新近文章列表</strong></h3>
                </div>
                <div style='padding: 2px; margin: 0px'>
                </div>
                <div style='width: 64%; float: left;' id='filelist'>
                </div>
            </div>
        </div>
        <div class="comment">
            <div class='Content-top'>
                <h3 class='ContentTitle'>
                    <strong>相关视图 </strong>
                </h3>
            </div>
            <div class="report">
                <div id="klreport">
                    <ul>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=Statistics'>知识结构图</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=TagCloud'>标签云图</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=Archives'>项目归档</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=SearchHistory'>搜索历史</a></li>
                    </ul>
                </div>
                <div id="tagreport">
                    <ul>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=MarkedArticles'>带有书签的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=TaggedArticles'>带有标签的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=MemoArticles'>带有备注的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=AttachArticles'>带有附件的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=ImageArticles'>带有图片的文章</a></li>
                    </ul>
                </div>
                <div id="readstatus">
                    <ul>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=RecentArticles'>最近阅读过的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=NewArticles'>最近添加的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=ModifiedArticles'>最近修改过的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=HotArticles'>经常阅读的文章</a></li>
                        <li>
                            <img src='images/icons/11.bmp' class='icon'><a href='pkm2:KnowledgeView?key=ColdArticles'>很少阅读的文章</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="comment">
            <div class="innerframe">
                <div class='Content-top'>
                    <h3 class='ContentTitle'>
                        <strong>书签列表（1-10）</strong></h3>
                </div>
                <div class="artlabel">
                    <div class ="group1">
                        <li>
                            <img src='images/icons/52.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks52'>很重要、很紧急</a></li>
                        <li>
                            <img src='images/icons/53.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks53'>很重要、不紧急</a></li>
                        <li>
                            <img src='images/icons/54.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks54'>不重要、很紧急</a></li>
                    </div>
                    <div class="group2">
                        <li>
                            <img src='images/icons/55.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks55'>不重要、不紧急</a></li>
                        <li>
                            <img src='images/icons/48.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks48'>问题</a></li>
                        <li>
                            <img src='images/icons/47.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks47'>信息</a></li>
                        <li>
                            <img src='images/icons/48.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks48'>注意</a></li>
                    </div>
                    <div class="group3">
                        <li>
                            <img src='images/icons/36.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks36'>是！</a></li>
                        <li>
                            <img src='images/icons/37.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks37'>重要！</a></li>
                        <li>
                            <img src='images/icons/38.bmp' class='icon'><a href='pkm2:bookmark?key=bookmarks38'>两种方法</a></li>
                    </div>
                </div>
            </div>
        </div>
        <div style='text-align: right; padding-right: 20px; color: #333'>
            <a href='javascript:window.scrollTo(0,0);'>返回顶部 </a>
            <br />
            <br />
        </div>
    </div>
    <div id='foot' style='margin: 5px auto; width: 98%; padding: 10px'>
        Powered By PKMP CopyRight 2011, <a href='http://www.pkmp.net/index.htm'>www.PKMP.NET</a>
    </div>
</body>
</html>
